﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Downloader.Domain.Contracts.Tasks
{
  public  interface IFriendlyLinkTasks
    {
        /// <summary>
        /// 得到列表
        /// </summary>
        /// <returns></returns>
      List<FriendlyLink> GetAll();
        /// <summary>
        /// 根据ID得到指定对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
      FriendlyLink Get(int id);
        /// <summary>
        /// 新建或更新对象
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
      FriendlyLink CreateOrUpdate(FriendlyLink articleContent);
        /// <summary>
        /// 删除指定ID的对象。
        /// </summary>
        /// <param name="id"></param>
        void Delete(int id);
    }
}
